<template>
  <div>
    <div>这是父组件</div>
    <slotChild v-slot="{ usertext }">
      {{ usertext }}
    </slotChild>

    <!-- <slotChild> -->
    <!-- <template v-slot="{ usertext }">{{ usertext }}</template> -->
    <!-- </slotChild> -->

    <slotChild>
      <div slot="aaa"></div>
      <div>我是默认的</div>
      <div slot="bbb">我是bbb</div>
    </slotChild>
  </div>
</template>

<script>
import slotChild from "@/views/slot/slotChild";
export default {
  components: {
    slotChild
  },
  mounted() {
  }
};
</script>

<style></style>
